package com.ruizhong.PIW.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 导航栏按钮表
 * </p>
 *
 * @author fengweijie
 * @since 2023-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_navbtn")
public class TNavbtn implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 导航栏按钮图标
     */
    private String icon;

    /**
     * 导航栏按钮文本
     */
    private String content;

    /**
     * 主导航id (-1-上导航 -2-下导航 其他-主导航id)
     */
    private Integer mainNav;


    private Boolean hasSon;

    @TableField(exist = false)
    private List<TNavbtn> sonNavs;

}
